namespace PhoneInfoApp
{
    public class Phone
    {
        // 品牌
        public string Brand { get; set; }
        
        // 重量（克）
        public int Weight { get; set; }
        
        // 后置摄像头像素
        public long CameraPixels { get; set; }
        
        // 价格（元）
        public decimal Price { get; set; }

        public Phone(string brand, int weight, long cameraPixels, decimal price)
        {
            Brand = brand;
            Weight = weight;
            CameraPixels = cameraPixels;
            Price = price;
        }

        public void DisplayInfo()
        {
            Console.WriteLine("手机信息如下：");
            Console.WriteLine($"品牌: {Brand}");
            Console.WriteLine($"重量: {Weight}g");
            Console.WriteLine($"后置摄像头像素: {CameraPixels:N0} 像素");
            Console.WriteLine($"价格: ¥{Price:N2}");
        }
    }
}